/**
 * 
 */
package com.example.validation.controler;

import com.example.validation.utils.IEnumBase;

/**
 * @author xiazhengjiao
 * @date 2019年5月31日
 */
public enum OrderEnum implements IEnumBase {

	ORDER(1, "下单"), 
	SHARE(2, "分享");

	private Integer code;
	private String messge;

	private OrderEnum(Integer code, String message) {
		this.code = code;
		this.messge = message;
	}

	@Override
	public Integer getCode() {
		return this.code == null ? this.ordinal() : this.code;
	}

	@Override
	public String getMessage() {
		return this.messge == null ? this.name() : this.messge;
	}

}
